package com.APIObject.String_;

public class Test1 {
    public static void main(String[] args) {

        System.out.println(GetArrayData(new int[]{11, 22, 33}));

    }
    public static String GetArrayData(int[]arr){
        StringBuilder sb=new StringBuilder();
        if(arr==null){
            return null;
        }
        sb.append("[");
        for (int i = 0; i <arr.length ; i++) {
           if(i==arr.length-1)
                sb.append(arr[i]);
            else
                sb.append(arr[i]).append(",");
        }
        sb.append("]");
        String sb1=sb.toString();
        return sb1;
    }
}
